﻿<%@ Page Language="C#" MasterPageFile="~/GiaoDienClient/Main.master" AutoEventWireup="true"
    CodeFile="TrangChu.aspx.cs" Inherits="TrangChu" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../CSS/TrangChu.css" rel="stylesheet" type="text/css" />
    <link href="../CSS/Client.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CPHBody" runat="Server">
    <div style="width: 100%; height: auto; margin: 0px auto; text-align: center;">
        <!--Phần chứa toàn bộ thông tin của trang-->
        <div style="width: 1004px; height: auto; margin: auto auto; margin-bottom: 10px;
            text-align: left;">
            <div id="mainwrap">
                <div class="ut-line">
                    <div class="signIn">
                        <div class="top-signin">
                            <div class="ltop-top-signin">
                            </div>
                            <div class="rtop-top-signin">
                            </div>
                        </div>
                        <div class="login" style="border: solid 1px #cccccc">
                          <div style="height:250px; width:550px;float:left;">
                            <div class="slideshow banner_login" id="SlideJquery">
                                <img src="../imageslide/75284187-ams15.jpg" alt="anhQC" title="1" />
                                <img src="../imageslide/hoaphuongdo.jpg" alt="anhQC" title="2" />
                                <img src="../imageslide/image00412.jpg" alt="anhQC" title="3" />
                                <%--<img src="../Image/AnhQC/slide4.jpg" alt="anhQC" title="4"/>
                                    <img src="../Image/AnhQC/slide5.jpg" alt="anhQC" title="5"/>
                                --%>
                               
                            </div>
                             <div style="width:90px;float:right">
                             <a href="TrangHuongDanSMS.aspx"><img src="../images/SMS.jpg" height="100px" width="100%" /></a>
                                    <a href="TrangHuongDanSMS.aspx"><img src="../images/email.jpg" height="100px" width="100%" /></a>
                                    
                                </div>
                             </div>
                          <div class="box_login">
                                <div class="top_box_login">
                                    <div class="ltop_box_login">
                                    </div>
                                    <div class="rtop_box_login">
                                    </div>
                                </div>
                                <div class="center_box_login">
                                    <h2 class="title">
                                        Đăng nhập</h2>
                                    <form method="post">
                                    <input type="hidden" value="userAction" name="act" />
                                    <input type="hidden" value="login" name="action" />
                                    <div class="group_listing_input">
                                        <div class="listing_input">
                                            <div class="post_label_container">
                                                <asp:Label CssClass="postLabel" runat="server" ID="lblTenDangNhap" Text="Tài khoản"></asp:Label>
                                            </div>
                                            <asp:TextBox CssClass="login_text_input" ID="txtDangNhap" runat="server"></asp:TextBox>
                                        </div>
                                        <div class="listing_input">
                                            <div class="post_label_container">
                                                <asp:Label CssClass="postLabel" ID="lblMatKhau" Text="Mật khẩu" runat="server"></asp:Label>
                                            </div>
                                            <asp:TextBox CssClass="login_text_input" ID="txtPass" TextMode="Password" runat="server"></asp:TextBox>
                                        </div>
                                        <br />
                                        <div class="text_remember">
                                            <asp:RadioButton runat="server" ID="rdoAdmin" GroupName="DN" AutoPostBack="True"
                                                OnCheckedChanged="rdoAdmin_CheckedChanged" />Admin&nbsp&nbsp
                                            <asp:RadioButton runat="server" ID="rdoGiaoVien" GroupName="DN" AutoPostBack="True"
                                                OnCheckedChanged="rdoGiaoVien_CheckedChanged" />Giáo viên&nbsp&nbsp
                                            <asp:RadioButton runat="server" ID="rdoPhuHuynh" GroupName="DN" AutoPostBack="True"
                                                OnCheckedChanged="rdoPhuHuynh_CheckedChanged" />Phụ huynh
                                        </div>
                                        <div style="text-align: center; color: Red">
                                            <asp:Label ID="lblThongBao" runat="server"></asp:Label></div>
                                        <br />
                                        <div class="button_listing_input">
                                            <asp:Button CssClass="button_login" ID="btnDangNhap" runat="server" Height="30px"
                                                Width="150px" OnClick="btnDangNhap_Click" />
                                        </div>
                                    </div>
                                    </form>
                                </div>
                                <div class="bottom_box_login">
                                    <div class="lbottom_box_login">
                                    </div>
                                    <div class="rbottom_box_login">
                                    </div>
                                </div>
                            </div>
                            <div style="clear: both;">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div style="margin-top: 5px; width: 100%; float: left;">
                <div class="newsleft">
                    <div class="title" style="width: 100%">
                        <span>Tin mới nhất</span></div>
                    <div id="tin" style="width: 100%; border: solid 1px #5197ff;">
                        <table>
                            <tr>
                                <td>
                                    <asp:DataList Width="100%" ID="dtlMoi" runat="server" BackColor="White" BorderColor="#E7E7FF"
                                        BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="None">
                                        <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
                                        <AlternatingItemStyle BackColor="#F7F7F7" />
                                        <ItemStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
                                        <SelectedItemStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
                                        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
                                        <ItemTemplate>
                                            <table width="100%">
                                                <tr>
                                                    <td class="dau">
                                                        *
                                                    </td>
                                                    <td class="muctin">
                                                        &nbsp&nbsp&nbsp
                                                        <asp:Label ID="lblMaTin" runat="server" Text='<%#Eval("MaTin") %>' Visible="false"></asp:Label>
                                                        <asp:Label ID="Label1" runat="server" Text='<%#Eval("MaChuyenMuc") %>' Visible="false"></asp:Label>
                                                        <asp:HyperLink ID="HyperLink1" runat="server" Text='<%# Eval("TieuDe") %>' NavigateUrl='<%#"TrangTinTucChiTiet.aspx?MaTin="+Eval("MaTin")+"&MaChuyenMuc="+Eval("MaChuyenMuc") %>'
                                                            Target="_blank">
                                                        </asp:HyperLink>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                    </td>
                                                    <td class="noidungtin">
                                                        <%#Eval("TomTatNoiDung") %>
                                                    </td>
                                                </tr>
                                            </table>
                                        </ItemTemplate>
                                    </asp:DataList>
                                </td>
                            </tr>
                        </table>
                        <br />
                    </div>
                </div>
                <div id="newsright">
                    <div id="TinGD" style="width: 330px;">
                        <div class="" style="margin-left: 100px; width: 220px;">
                            <span>Tin giáo dục</span></div>
                        <br />
                    </div>
                    <div style="border-top: solid 1px #5197ff; -moz-border-radius: 0 10px 0 0; border-right: solid 1px #5197ff;">
                        <table width="100%">
                            <tr>
                                <td>
                                    <asp:DataList Width="100%" ID="dtlGD" runat="server" BackColor="White" BorderColor="#CCFF33"
                                        BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="None" OnSelectedIndexChanged="dtlGD_SelectedIndexChanged">
                                        <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
                                        <AlternatingItemStyle BackColor="#F7F7F7" />
                                        <ItemStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
                                        <SelectedItemStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
                                        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
                                        <ItemTemplate>
                                            <table width="100%">
                                                <tr>
                                                    <td rowspan="2">
                                                        <asp:Image ID="img" Width="120" Height="100" runat="server" ImageUrl='<%#"~/Images/"+Eval("Anh") %>' />
                                                    </td>
                                                    <td valign="top" style="width: 100%;">
                                                        <span class="tieude1" style="margin-left: 15px">
                                                            <asp:Label ID="lblMa" Text='<%#Bind("MaTin") %>' runat="server" Visible="false"></asp:Label>
                                                            <asp:Label ID="lblMaTin" runat="server" Text='<%#Bind("MaChuyenMuc") %>' Visible="false"></asp:Label>
                                                            <asp:HyperLink ID="HyperLink1" runat="server" Text='<%# Eval("TieuDe") %>' NavigateUrl='<%#"TrangTinTucChiTiet.aspx?MaTin="+Eval("MaTin")+"&MaChuyenMuc="+Eval("MaChuyenMuc") %>'
                                                                Target="_blank">
                                                            </asp:HyperLink>
                                                            ` </span>
                                                        <p style="margin-left: 15px">
                                                            <%#Eval("TomTatNoiDung") %></p>
                                                    </td>
                                                </tr>
                                            </table>
                                        </ItemTemplate>
                                    </asp:DataList>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div class="divPaging" id="divPaging" runat="server">
                        <table cellpadding="0" border="0">
                            <tr>
                                <td align="right">
                                    <asp:LinkButton ID="lbtnFirst" runat="server" CausesValidation="false" OnClick="lbtnFirst_Click">First</asp:LinkButton>
                                    &nbsp;
                                </td>
                                <td align="right">
                                    <asp:LinkButton ID="lbtnPrevious" runat="server" CausesValidation="false" OnClick="lbtnPrevious_Click">Previous</asp:LinkButton>&nbsp;&nbsp;
                                </td>
                                <td align="center" valign="middle">
                                    <asp:DataList ID="dlPaging" runat="server" RepeatDirection="Horizontal" OnItemCommand="dlPaging_ItemCommand"
                                        OnItemDataBound="dlPaging_ItemDataBound">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="lnkbtnPaging" runat="server" CommandArgument='<%# Eval("PageIndex") %>'
                                                CommandName="Paging" Text='<%# Eval("PageText") %>'></asp:LinkButton>&nbsp;
                                        </ItemTemplate>
                                    </asp:DataList>
                                </td>
                                <td align="left">
                                    &nbsp;&nbsp;<asp:LinkButton ID="lbtnNext" runat="server" CausesValidation="false"
                                        OnClick="lbtnNext_Click">Next</asp:LinkButton>
                                </td>
                                <td align="left">
                                    &nbsp;
                                    <asp:LinkButton ID="lbtnLast" runat="server" CausesValidation="false" OnClick="lbtnLast_Click">Last</asp:LinkButton>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="5" align="center" style="height: 30px" valign="middle">
                                    <asp:Label ID="lblPageInfo" runat="server"></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
            <div style="clear: both;">
            </div>
        </div>
    </div>
</asp:Content>
